﻿<%@ Page Title="Nouvel Article" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="NewArticle.aspx.cs" Inherits="WeakEndForum.NewArticle" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <div class="container">
        <div class="page-header">
            <span class="h2 RalewayFont"><span class="glyphicon glyphicon-pencil"></span> Ajouter un article</span>
        </div>
        <p>Titre de l'article</p>
        <asp:RequiredFieldValidator ID="reqFieldValidArticleTitle" ValidationGroup="newArticleValidation" Display="None" ErrorMessage="Un titre d'article est obligatoire." ControlToValidate="txtNewArticleTitle" runat="server" />
        <asp:TextBox CssClass="form-control inputBottomMargin" ID="txtNewArticleTitle" placeholder="Entrer un titre..." runat="server" />
        <p>Contenu de l'article</p>
        <asp:RequiredFieldValidator ID="reqFieldValidArticleContent" ValidationGroup="newArticleValidation" Display="None" ErrorMessage="Le contenu d'article est obligatoire." ControlToValidate="txtNewArticleContent" runat="server" />
        <asp:TextBox CssClass="form-control textarea inputBottomMargin" TextMode="MultiLine" ID="txtNewArticleContent" ValidationGroup="newArticleValidation"  placeholder="Entrer du contenu..." runat="server" />
        <asp:ValidationSummary ID="validationSummNewArticle" CssClass="alert alert-danger" ValidationGroup="newArticleValidation" DisplayMode="BulletList" runat="server" />
        <asp:Button ID="btnSendNewArticle" CssClass="btn btn-primary" ValidationGroup="newArticleValidation" OnClick="btnSendNewArticle_Click" Text="Envoyer" runat="server" />
    </div>
</asp:Content>
